package edu.zqu.specialty.project.controller;


import edu.zqu.common.result.ZQUResult;
import edu.zqu.specialty.project.service.SpecialtyCourseService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 一个专业可以修读的课程的清单 前端控制器
 * </p>
 *
 * @author 郭泽鹏
 * @since 2020-06-24
 */
@RestController
@RequestMapping("/specialty-course")
@Api(tags = "一个专业可以修读的课程的清单 前端控制器")
public class SpecialtyCourseController {
    @Autowired
    SpecialtyCourseService specialtyCourseService;

    @GetMapping("/specialtyCourse/list")
    public ZQUResult getSpecialtyCourseList(){
        return new ZQUResult(200, "SpecialtyCourse：查询成功", specialtyCourseService.getSpecialtyCourseList());
    }
}

